# $Id: PKGBUILD 76442 2012-09-18 16:13:31Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=cpulimit
pkgver=20120918
pkgrel=1
pkgdesc="Limit cpu usage in %. Actualy sends SIGSTOP/SIGCONT"
arch=('i686' 'x86_64')
url="http://cpulimit.sourceforge.net/"
license=("GPL")
depends=()
source=("$pkgname-$pkgver.tar.gz::https://github.com/opsengine/cpulimit/tarball/master")
md5sums=('a80b8ec21b668d1c15a29ab1f795d1ba')

build() {
  cd $srcdir/opsengine-cpulimit-*
  make
  install -Dm0755 src/cpulimit $pkgdir/usr/bin/cpulimit
  install -Dm0644 README $pkgdir/usr/share/doc/$pkgname/README
}
